import http from "@/api/httpApi/base/http.js";


//获取商品分类列表
export const getCommodityCategoryList = (projectId) => {
    return http.requestGet("/admin/commodity-category/list?projectId=" + projectId);
};

//修改商品分类
export const updateCommodityCategory = (commodityCategory) => {
    return http.requestPut("/admin/commodity-category", commodityCategory);
};

//添加商品分类
export const addCommodityCategory = (commodityCategory) => {
    return http.requestPost("/admin/commodity-category", commodityCategory);
};

//编辑商品分类
export const editCommodityCategory = (commodityCategory) => {
    return http.requestPut("/admin/commodity-category", commodityCategory);
};

//删除商品分类
export const delCommodityCategory = (ids) => {
    return http.requestDeleteArr("/admin/commodity-category", "id", ids);
};
